#pragma once

#include <iostream>
#include <string>

using namespace std;

class Util
{
public:
    static string getOneLine(string &inbuffer, const string &sep)
    {
        auto pos = inbuffer.find(sep);
        if(pos == string::npos) return "";

        string sub = inbuffer.substr(0, pos);
        inbuffer.erase(0, pos + sep.size());

        return sub;
    }
};